<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>首页_后台管理系统</title>
    <link rel="stylesheet" href="/static/admin/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/common.css">
    <style>
        #loginsuccess{
            width: 100%;
            height: 100px;
            line-height: 100px;
            font-size: 35px;
            font-weight: bold;
            color: #979797;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 35%;
            margin: auto;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    {include file="common/top"}
    {include file="common/left"}
</div>
<div class="main-container">
    <!-- 面包屑 -->
    <!-- lay-separator="-" -->
    <!-- <span class="layui-breadcrumb" lay-separator="-">
            <a href="#">首页</a>
    </span> -->
    <!-- 登录成功进入首页 -->
    <div id="loginsuccess">
        <!-- 欢迎管理员，{$Think.session.admin.name}！ -->
    </div>
</div>
</body>
<script src="/static/admin/layui/layui.js"></script>
<script>
    layui.use(['element','form'],() =>{
    })

</script>
<!-- <script src="../layui/layui.all.js"></script>
<script>
    window.onload = () => {
        layui.layer.msg('Hello Layui!');
    }
</script> -->
<script src="/static/user/js/jquery-3.4.1.js"></script>
<script>
    $(function(){
        var time = new Date();
        var h = time.getHours();
        if(h>=0 && h<11){
            $('#loginsuccess').text('早上好！欢迎管理员，{$Think.session.admin.name}！');
        }else if(h>=11 && h<15){
            $('#loginsuccess').text('中午好！欢迎管理员，{$Think.session.admin.name}！');
        }else if(h>=15 && h<18){
            $('#loginsuccess').text('下午好！欢迎管理员，{$Think.session.admin.name}！');
        }else if(h>=18 && h<20){
            $('#loginsuccess').text('傍晚好！欢迎管理员，{$Think.session.admin.name}！');
        }else{
            $('#loginsuccess').text('晚上好！欢迎管理员，{$Think.session.admin.name}！');
        }
    })
</script>
</html>